package com.grm.sys.mapper;

import com.grm.sys.model.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper {
    void batchInsert(@Param("userId") Long userId,@Param("roleIds") List<Long> roleIds);

    List<Long> queryRoleIds(@Param("userId") Long userId);

    void deleteByRoleIds(@Param("roleIds")List<Long> roleIds);

    void deleteByUserIdAndRoleIds(@Param("userId") Long userId,@Param("roleIds")List<Long> roleIds);

    void deleteByUserIds(@Param("userIds")List<Long> userIds);
}
